function index = nei_map(side)
switch side
    case 1
        index = 3;
    case 2
        index = 2;
    case 3
        index = 1;
end
end